/*
 * @Author: your name
 * @Date: 2020-08-27 11:23:56
 * @LastEditTime: 2020-08-28 14:22:40
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \ryfront\src\api\roleres.js
 */
import axios from './http';

//通过角色ID获取相关资源
export const roleresByRoleId = (roleId) => {
    return axios.get("/d_role_res/d-role-res/getResByRoleId",{params:{roleId:roleId}});
}

//批量保存角色关联资源
export const roleresSaveByRoleId = (obj) => {
    return axios.post("/d_role_res/d-role-res/savesByRoleId",obj);
}
